<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传文件</title>
</head>
<body>
    <form action="/web/upfile/" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <p>
            <label for="ua">姓名：</label><input type="text" name="uname" id="ua"/>
        </p>
        <p>
            <label for="ph">头像：</label><input type="file" name="photo" id="ph"/>
        </p>
        <p>
            <label for="zc">注册：</label><input type="submit" value="注册"/>
        </p>
    </form>
</body>
</html>